﻿using Fur.Htx.Core.Entities;
using Furion.DynamicApiController;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Fur.Htx.Application
{
    /// <summary>
    /// 系统服务接口
    /// </summary>
    public class SystemAppService : IDynamicApiController
    {
        private readonly ISystemService _systemService;
        public SystemAppService(ISystemService systemService)
        {
            _systemService = systemService;
        }

        /// <summary>
        /// 获取系统描述
        /// </summary>
        /// <returns></returns>
        public string GetDescription()
        {
            return _systemService.GetDescription();
        }

        public async Task<List<UserInfo>> GetUsers()
        {
            return await _systemService.GetUsers();
        }


        public async Task<UserInfo> GetDetail()
        {
            return await _systemService.GetDetail();
        }


    }
}
